package model.entities;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
/**
 * A Laser Beam represents the world laser.
 * The laser consists of beam segments.
 * 
 * @author ben
 *
 */
public class LaserBeam {
	
	private Color color;
	
	private List<LaserBeamSegment> segmentList = new ArrayList<LaserBeamSegment>();
	
	public void AddSegment(LaserBeamSegment segment) {
		segmentList.add(segment);
	}
	
	public void clearSegments() {
		segmentList.clear();
	}
	
	public LaserBeam(Color color) {
		this.setColor(color);
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public List<LaserBeamSegment> getSegmentList() {
		return segmentList;
	}

}
